<?php
if (!isset($_GET["arg1"]))
{
    include "section/messages/messages.php";
}
else
{
    if ($_GET["arg1"] == "new")
    {
        include "section/messages/write.php";
    }
    else if (is_numeric($_GET["arg1"]))
    {
        include "section/messages/detail.php";
    }
    else
    {
        include "section/messages/messages.php";
    }
}
?>